<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateCoursesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('courses', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name', 60);
            $table->integer('org_id');
            $table->decimal('cost');
            $table->smallInteger('score');
            $table->float('effect');
            $table->float('teachers');
            $table->float('environment');
            $table->text('breif');
            $table->text('introduction');
            $table->text('activities');
            $table->tinyInteger('is_recommend');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('courses');
    }
}
